using System;
using System.Collections.Generic;
using System.Text;
using SpoonCore2.Client;
using SpoonCore2.Message.Filter;
using SpoonCore2.Message.Filter.Info;

namespace SpoonCore2.Message.Filter.Handler
{
	class CompressionFilter : IMessageFilter<CompressionFilterInfo>
	{
		private const int MinSize = 100;

		public override void Receive(CompressionFilterInfo option, ref byte[] data)
		{
			if(option.Compressed)
			{
				
			}
		}

		public override void Send(CompressionFilterInfo option, ref byte[] data)
		{
			option.Compressed = (data.Length > MinSize);
			if(option.Compressed)
			{
				
			}
		}
	}
}